package nc.ui.tools.FunSwitch.salebill;

import nc.ui.pub.ButtonObject;
import nc.ui.pub.bill.BillEditEvent;
import nc.ui.so.so001.panel.SaleBillUI;
import nc.ui.tools.FunSwitch.FunSwitch;
import nc.ui.tools.FunSwitch.IFunSwitch;
import nc.ui.tools.MyUI.FakeUI_SaleBillUI;

public abstract class SaleBillUIOnButtonISwitch extends FakeUI_SaleBillUI  implements IFunSwitch{

	public SaleBillUIOnButtonISwitch(SaleBillUI saleBillUI) {
		super(saleBillUI);
	}
public void update(FunSwitch obj, Object action) {
	OnButtonSwitch Switch=(OnButtonSwitch)obj;
	ButtonObject bo=Switch.bo;
	try {
		deal(bo);
	} catch (Exception e) {
		e.printStackTrace();
	}
}

public abstract void deal(ButtonObject bo)throws Exception;
}
